package com.mizhiquan.service;

import com.mizhiquan.common.ServerResponse;
import com.mizhiquan.pojo.User;

/**
 * UserService
 */
//Service接口声明类,规范方法定义，并方便在Controller调用和查阅
public interface IUserService {

    ServerResponse<User> login(String username, String password);

    ServerResponse<String> register(User user);

    //邮箱和昵称校验
    ServerResponse<String> changePass(String oldpass, String newpass);

    //忘记密码
    ServerResponse<String> forgetPass(String oldpass, String newpass);

    ServerResponse<String> checkValid(String str, String type);

    //手机、邮箱的验证激活
    ServerResponse<String> Activate(String type, String value, String code, String outerId);
}
